{template 'common/header'}
<ul class="nav nav-tabs">
    <li ><a href="{php echo url('grant/grant/list');}">拨款凭证信息列表</a></li>
    <li class="active" ><a href="{php echo url('grant/grant/disp',array('id'=>$id));}">查看拨款凭证信息列表</a></li>
</ul>
<div class="main">
    <form class="form-horizontal form" action="{$url}" method="post" id="form1">
        <input type="hidden" name="id" value="{$row['id']}" />
        <div class="page-header">
            <h4>拨款凭证信息</h4>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">付款单位全称</label>
            <div class="col-sm-6">
                <input type="text" id="payer" class="form-control" name="payer" disabled = "true" value="{$row['payer']}"  placeholder="请输入付款单位全称"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">收款单位全称</label>
            <div class="col-sm-6">
                <input type="text" id="payee" class="form-control" name="payee" disabled = "true" value="{$row['payee']}"  placeholder="请输入收款单位全称"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">拨款金额</label>
            <div class="col-sm-6">
                <div class="input-group">
                    <input type="text" id="money" class="form-control" name="money" disabled = "true" value="{$row['money']}"  placeholder="请输入拨款金额"/>
                    <span class="input-group-addon">元</span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">用途</label>
            <div class="col-sm-6">
                <input type="text" id="purpose" class="form-control" name="purpose" disabled = "true" value="{$row['purpose']}"  placeholder=""/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">凭证图片</label>
            <div class="col-sm-6" style="margin-top:.5em;">
                <img src="{$_W['attachurl']}{$row['thumb']}" class="img-responsive img-thumbnail" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">短信发送</label>
            <div class="col-sm-6">
                <input type="text" id="needsend" class="form-control" name="needsend" disabled = "true" value="{if $row['needsend']==1}需要{else}不需要{/if}"  placeholder=""/>
            </div>
        </div>
        {if $row['needsend']==1}
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">短信内容</label>
            <div class="col-sm-6">
                <input type="text" id="content" class="form-control" name="content" disabled = "true" value="{$row['content']}"  placeholder=""/>
            </div>
        </div>
        {/if}

        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">状态</label>
            <div class="col-sm-6">
                <input type="text" id="status" class="form-control" name="status" disabled = "true" value="{$status[$row['status']]}"  placeholder=""/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">审核人</label>
            <div class="col-sm-6">
                <input type="text" id="auditor" class="form-control" name="auditor" disabled = "true" value="{$row['auditor']}"  placeholder=""/>
            </div>
        </div>
        {if $row['needsend']==1}
        <div class="page-header  msgd">
            <h4>短信发送信息</h4>
        </div>

        <div class="form-group msgd">
            <label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">接收人员</label>
            <div class="col-sm-6">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th>名称</th>
                        <th>手机</th>
                        <th>职务</th>
                    </tr>
                    </thead>
                    <tbody id="form-items">
                    {loop $selects $item}
                    <tr>
                        <td>{$item['name']} </td>
                        <td>{$item['mobile']}</td>
                        <td>{$item['worktitle']}</td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>

        </div>
        {/if}
    </form>
</div>
